package view;

import javax.swing.AbstractAction;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JRootPane;
import javax.swing.KeyStroke;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.Color;
import javax.swing.border.LineBorder;
import com.sun.glass.events.KeyEvent;
import java.awt.Font;
import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import java.awt.Dimension;

@SuppressWarnings("serial")
public class TelaSobre extends JFrame {

	private JPanel contentPane;

	/**
	 * Classe de criacao da tela Sobre
	 * 
	 * @author Gustavo
	 */

	public TelaSobre() {

		JRootPane meurootpane = getRootPane();
		meurootpane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
				KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), "ESCAPE");
		meurootpane.getRootPane().getActionMap()
				.put("ESCAPE", new AbstractAction("ESCAPE") {

					public void actionPerformed(ActionEvent e) {
						setVisible(false);
						dispose();
					}
				});

		setBounds(100, 100, 500, 400);
		contentPane = new JPanel();
		contentPane.setMaximumSize(new Dimension(500, 400));
		contentPane.setFocusable(false);
		contentPane.setBackground(Color.WHITE);
		contentPane.setBorder(new LineBorder(new Color(0, 0, 0)));
		setContentPane(contentPane);
		this.setResizable(false);
		contentPane.setLayout(null);
		this.setLocationRelativeTo(null);

		JLabel label_1 = new JLabel("");
		label_1.setIcon(new ImageIcon(System.getProperty("user.dir")
				+ "\\Icones\\Som.png"));
		label_1.setBounds(16, 26, 40, 40);
		contentPane.add(label_1);

		JLabel lblZa = new JLabel("");
		lblZa.setIcon(new ImageIcon(System.getProperty("user.dir")
				+ "\\Icones\\Barra2.png"));
		lblZa.setBackground(Color.WHITE);
		lblZa.setBounds(10, 2, 52, 81);
		contentPane.add(lblZa);

		JLabel label = new JLabel("");
		label.setBorder(new LineBorder(new Color(0, 0, 0)));
		label.setIcon(new ImageIcon(System.getProperty("user.dir")
				+ "\\Icones\\Barra.png"));
		label.setBounds(1, 1, 70, 398);
		contentPane.add(label);

		JLabel label_2 = new JLabel("");
		label_2.setBorder(new LineBorder(Color.LIGHT_GRAY));
		label_2.setBounds(81, 79, 409, 1);
		contentPane.add(label_2);

		JLabel lblNewLabel = new JLabel("Scalet -Percep\u00E7\u00E3o Musical");
		lblNewLabel.setFont(new Font("Arial Narrow", Font.PLAIN, 24));
		lblNewLabel.setBounds(90, 11, 301, 36);
		contentPane.add(lblNewLabel);

		JLabel lblVerso = new JLabel("Vers\u00E3o: 1.0.0");
		lblVerso.setFont(new Font("Arial", Font.PLAIN, 11));
		lblVerso.setBounds(93, 58, 79, 14);
		contentPane.add(lblVerso);

		JLabel lblComplete = new JLabel("FULL");
		lblComplete.setForeground(SystemColor.textHighlight);
		lblComplete.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblComplete.setBounds(406, 55, 46, 17);
		contentPane.add(lblComplete);

		JLabel label_3 = new JLabel("");
		label_3.setBorder(new LineBorder(Color.LIGHT_GRAY));
		label_3.setBounds(81, 186, 409, 1);
		contentPane.add(label_3);

		JLabel lblObjetivoDesenvolverUm = new JLabel(
				"<html><body>Objetivo:<br><br> Desenvolver a percep\u00E7\u00E3o musical do usu\u00E1rio utilizando \r\num objeto de aprendizagem.</body></html>");
		lblObjetivoDesenvolverUm.setFont(new Font("Arial", Font.PLAIN, 11));
		lblObjetivoDesenvolverUm.setToolTipText("");
		lblObjetivoDesenvolverUm.setBounds(96, 104, 394, 54);
		contentPane.add(lblObjetivoDesenvolverUm);

		JLabel lblintegrantesBrunoRicci = new JLabel(
				"<html><body>Integrantes:<br>\r\n<br>\r\nBruno Ricci - Desenvolvedor <br>\r\nFabricio Takayassu - Desenvolvedor <br>\r\nGustavo Fernandes - Scrum Master/Designer <br>\r\nThiago Cruz - Desenvolvedor <br>\r\nLeonardo Cardena - Scrum Owner <br>\r\n</body></html>");
		lblintegrantesBrunoRicci.setToolTipText("");
		lblintegrantesBrunoRicci.setFont(new Font("Arial", Font.PLAIN, 11));
		lblintegrantesBrunoRicci.setBounds(96, 209, 219, 98);
		contentPane.add(lblintegrantesBrunoRicci);

		JLabel label_4 = new JLabel("");
		label_4.setBorder(new LineBorder(Color.LIGHT_GRAY));
		label_4.setBounds(81, 336, 409, 1);
		contentPane.add(label_4);

		JLabel label_5 = new JLabel(
				"<html><body> \u00A9 2014 - Scarlet Software. <br>\r\nTodos os direitos reservados.\r\n\r\n</body></html>");
		label_5.setToolTipText("");
		label_5.setFont(new Font("Arial", Font.PLAIN, 9));
		label_5.setBounds(357, 344, 133, 45);
		contentPane.add(label_5);

		JLabel lblAperteEscPara = new JLabel("Pressione 'esc' para sair.");
		lblAperteEscPara.setFont(new Font("Arial", Font.PLAIN, 9));
		lblAperteEscPara.setBounds(81, 375, 133, 14);
		contentPane.add(lblAperteEscPara);
		setUndecorated(true);

	}

}
